<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>规则设置 客户分配设置</title>
<link href="${rc.contextPath}/common/css/common/common.css"rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${rc.contextPath}/common/js/thickbox/jquery.js"></script>
<script type="text/javascript" src="${rc.contextPath}/common/js/thickbox/thickbox.js"></script>
<script type="text/javascript" src="${rc.contextPath}/common/js/config.js"></script>
<script type="text/javascript" src="${rc.contextPath}/common/js/main.js"></script>

</head>
<body>
<input type="hidden" id="rootPath" value="${rc.contextPath}"/>
<!-- 遮罩 -->
<div id="bg" class="bg" style="display:none;"></div>
<div class="main">
  <!--可拖动 上部分-->
  <div class="position">
    <div class="p_left">当前位置：规则设置 &lt; 客户分配设置 &lt;</div>
    <div class="p_right">
      <dl><dt>姓名：</dt><dd>${currentUser.ename}</dd></dl>
      <dl><dt>登录时间：</dt><dd><span id="nowDate"></span></dd></dl>
    </div>
  </div>
  <div class="topBox">
    <div class="mesCheck">
      <div class="title1"><strong>客户分配审核 </strong></div>
      <div class="box2C">
        <div class="tableForm">
        	<form action="${rc.contextPath}/check/search" method="post">
	          <table border="0" align="center" cellpadding="0" cellspacing="0" class="tab1">
	           <tr>
	              <th width="100">部门名称：</th>
	              <td width="300">
		              <select name="dname" id="dname" onchange="javascript:document.forms[0].submit()">
		              	<option value="">----请选择----</option>
		              	<option value="">----不限----</option>
		              	#foreach($dept in $deptList)<option value="$dept.dname">$dept.dname</option>#end
		              </select>
	              </td>
	            </tr>     
	          </table>
        	</form>
        </div>
        <div  class="overflow" style="overflow-x:auto ; width:100%;">
        <table class="tab2">
          <tr>
            <th><input type="checkbox" name="allPick" id="allPick" onclick="pickController()"/></th>
            <th>部门名称</th>
            <th>修改时间</th>
            <th>操作</th>
          </tr>
          #foreach($config in $allotCheckList)
	          <tr>
	            <td><input type="checkbox" name="configListBox" class="configListBox" value="复选框" id="$config.deptno" /></td>
	            <td>$config.dname</td>
	            <td>$config.updateDate</td>
	            <td>
	            	<a href="#" onclick="showConfigOnly('$config.deptno')">查看修改</a>
	            	<a href="#" onclick="acceptOrRefuse('$config.deptno',true)">通过</a>
	            	<a href="#" onclick="acceptOrRefuse('$config.deptno',false)">拒绝</a>
	            </td>
	          </tr>
          #end
        </table>
       </div>
       <div>
          <div class="btnOper2 btn_inline"><a href="#" onclick="checkConfigBatch(true)" class="btn2"><span>批量通过</span></a>&nbsp;&nbsp;&nbsp;</div>
          <div class="btnOper2 btn_inline"><a href="#" onclick="checkConfigBatch(false)" class="btn2"><span>批量拒绝</span></a>&nbsp;&nbsp;&nbsp;</div>
        </div>

        <!-- #BeginLibraryItem "/Library/page.lbi" -->
        #set($endPage=$pageView.startPage + $pageView.pageSize)
        #set($pageNow=$pageView.pageNow + 1)
        #set($pageBack=$pageView.pageNow - 1)
        <input type="hidden" value="${pageView.pageCount}" id="pageCount"/>
        <div class="page clearfix">
          <ul class="le">
            <li>显示<span>$!{pageView.startPage}-$!{endPage}</span></li>
            <li>共<span>$!{pageView.rowCount}</span>条</li>
            <li><span>$!{pageView.pageNow}</span>页</li>
          </ul>
          <ul class="ri">
            <li><a href="javascript:;configPageController('jump')" class="go">&nbsp;</a></li>
            <li>到
              <input type="text" class="input" id="pageJump" size="4" />
              页</li>
            <li><a href="javascript:;configPageController('${pageView.pageCount}')" class="btn">[末页]</a></li>
            <li><a href="javascript:;configPageController('${pageNow}')" class="btn">[下页]</a></li>
            <li><a href="javascript:;configPageController('${pageBack}')" class="btn">[前页]</a></li>
            <li><a href="javascript:;configPageController('1')" class="btn">[首页]</a></li>
          </ul>
        </div>
        <!-- #EndLibraryItem -->
      </div>
    </div>
  </div>
  <!-- 设置详情弹窗 -->
  <div id="configInfo" class="div3">
  	<table class="tab3" id="configInfoTb">
  		<tr bgcolor="#CECECE">
  			<td>工作日</td>
  			<td>轮循开始时间</td>
  			<td>轮循结束时间</td>
  			<td>轮循间隔</td>
  		</tr>
  	</table>
  	<div class="btnOper2 btn_inline"><a href="#" onclick="closeConfigDiv()" class="btn2"><span>关闭</span></a>&nbsp;&nbsp;&nbsp;</div>
  </div>
  <!-- 批量设置弹窗 -->
  <div id="configBatchInfo" class="div4">
  	<table class="tab3">
  		<tr bgcolor="#CECECE">
  			<td>工作日</td>
  			<td>轮循开始时间</td>
  			<td>轮循结束时间</td>
  			<td>轮循间隔(分钟)</td>
  		</tr>
  		<tr title="星期一">
  			<td>星期一</td>
  			<td><select class="hh" name="hh"></select>:<select class="mm" name="mm"></select></td>
  			<td><select class="hh" name="hh"></select>:<select class="mm" name="mm"></select></td>
  			<td><input type="text" size="4" class="smallInput" style="height:19px" maxlength="50" name="poll"/></td>
  		</tr>
  		<tr title="星期二">
  			<td>星期二</td>
  			<td><select class="hh" name="hh"></select>:<select class="mm" name="mm"></select></td>
  			<td><select class="hh" name="hh"></select>:<select class="mm" name="mm"></select></td>
  			<td><input type="text" size="4" class="smallInput" style="height:19px" maxlength="50" name="poll"/></td>
  		</tr>
  		<tr title="星期三">
  			<td>星期三</td>
  			<td><select class="hh" name="hh"></select>:<select class="mm" name="mm"></select></td>
  			<td><select class="hh" name="hh"></select>:<select class="mm" name="mm"></select></td>
  			<td><input type="text" size="4" class="smallInput" style="height:19px" maxlength="50" name="poll"/></td>
  		</tr>
  		<tr title="星期四">
  			<td>星期四</td>
  			<td><select class="hh" name="hh"></select>:<select class="mm" name="mm"></select></td>
  			<td><select class="hh" name="hh"></select>:<select class="mm" name="mm"></select></td>
  			<td><input type="text" size="4" class="smallInput" style="height:19px" maxlength="50" name="poll"/></td>
  		</tr>
  		<tr title="星期五">
  			<td>星期五</td>
  			<td><select class="hh" name="hh"></select>:<select class="mm" name="mm"></select></td>
  			<td><select class="hh" name="hh"></select>:<select class="mm" name="mm"></select></td>
  			<td><input type="text" size="4" class="smallInput" style="height:19px" maxlength="50" name="poll"/></td>
  		</tr>
  	</table>
  	<div class="btnOper2 btn_inline"><a href="#" onclick="configBatch()" class="btn2"><span>批量设置</span></a>&nbsp;&nbsp;&nbsp;</div>
  	<div class="btnOper2 btn_inline"><a href="#" onclick="controllerConfigBatch(false)" class="btn2"><span>取消</span></a>&nbsp;&nbsp;&nbsp;</div>
  </div>
  <!-- 单个分配设置详情弹窗 -->
  <div id="configAlong" class="div5">
  	<table class="tab3">
  		<tr bgcolor="#CECECE">
  			<td>轮循开始时间</td>
  			<td><select class="alhh" name="alhh"></select>:<select class="almm" name="almm"></select></td>
  			<td>轮循结束时间</td>
  			<td><select class="alhh" name="alhh"></select>:<select class="almm" name="almm"></select></td>
  			<td>轮循间隔</td>
  			<td><input type="text" size="4" class="smallInput" style="height:19px" maxlength="50" name="alpoll" id="alpoll"/></td>
  		</tr>
  	</table>
  	<div class="btnOper2 btn_inline"><a href="#" id="configOk" onclick="allotConfigAlong(this)" class="btn2"><span>确定</span></a>&nbsp;&nbsp;&nbsp;</div>
  	<div class="btnOper2 btn_inline"><a href="#" onclick="controllerAlongConfig(false)" class="btn2"><span>取消</span></a>&nbsp;&nbsp;&nbsp;</div>
  </div>
  <!-- 提示等待div -->
  <center><div class="div6" id="waitDiv">服务器正在努力设置,喝杯茶等一下:)</div></center>
  <center><div class="div8" id="checkDiv"></div></center>
</div>
<!--可拖动 上部分end-->
<!--可拖动 下部分-->

<!--可拖动 下部分end-->
</div>
</body>
</html>
